﻿using System;
using System.Web.Security;

namespace Lucas.Wendell.PI.WebSite.AuthorizationAccess
{
    public class NetImobiliariaRoleProvider : RoleProvider
    {
        public override void AddUsersToRoles(string[] usernames, string[] roleNames)
        {
            throw new NotImplementedException();
        }

        public override string ApplicationName
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public override void CreateRole(string roleName)
        {
            throw new NotImplementedException();
        }

        public override bool DeleteRole(string roleName, bool throwOnPopulatedRole)
        {
            throw new NotImplementedException();
        }

        public override string[] FindUsersInRole(string roleName, string usernameToMatch)
        {
            throw new NotImplementedException();
        }

        public override string[] GetAllRoles()
        {
            throw new NotImplementedException();
        }

        public override string[] GetRolesForUser(string nome)
        {
            //var perfis = new UsuarioService().GetUserByLogin(nome).PerfilL;
            //var result = new string[perfis.Count];
            //var aux = 0;
            //foreach (var p in perfis)
            //{
            //    result[aux] = p.Nome;
            //    aux++;
            //}

            //return result;

            throw new NotImplementedException();
            //return new string[] { new UsuarioService().GetUserByLogin(nome).Perfil.Nome };// somente um perfil por usuario
        }

        public override string[] GetUsersInRole(string roleName)
        {
            throw new NotImplementedException();
        }

        public override bool IsUserInRole(string username, string roleName)
        {
            throw new NotImplementedException();
        }

        public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames)
        {
            throw new NotImplementedException();
        }

        public override bool RoleExists(string roleName)
        {
            throw new NotImplementedException();
        }
    }
}